import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from "@/store";
//引入组件库
import jvuewheel from '@jyeontu/jvuewheel'
//引入样式
import '@jyeontu/jvuewheel/lib/jvuewhell.css'

import '@/assets/less/base.less';
import animate from "animate.css";
import vuetify from './plugins/vuetify'
import HeaderBar from "@/components/HeaderBar";
import ZfFooter from "@/components/ZfFooter";
import VueClipboard from 'vue-clipboard2'

VueClipboard.config.autoSetContainer = true
Vue.use(VueClipboard)

Vue.component("headerBar", HeaderBar)
Vue.component("zfFooter", ZfFooter)
Vue.use(animate)
Vue.use(jvuewheel);

Vue.filter('readCount',(read)=>{
  if(read >= 100000000) {
    return (read / 100000000).toFixed(2) + '亿'
  }else if(read < 10000) {
    return read
  } else {
    return (read / 10000).toFixed(2) + '万'
  }
})

new Vue({
  vuetify,
  router,
  store,
  render: h => h(App)
}).$mount('#app')

